package com.wxproject.demo.Service.impl;

import com.wxproject.demo.Entity.AO.UserInfoAlterAO;
import com.wxproject.demo.Entity.VO.AllUserInfo;
import com.wxproject.demo.Mapper.UserInfoMapper;
import com.wxproject.demo.Service.UserInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author zqf
 * @date 2021/4/25 21:09
 * @description
 */
@Service
public class UserInfoServiceImpl implements UserInfoService {
    @Autowired
    private UserInfoMapper userInfoMapper;

    @Override
    public Integer alterUserInfo(UserInfoAlterAO userInfoAlterAO) {
        return userInfoMapper.alterUserInfo(userInfoAlterAO);
    }

    @Override
    public AllUserInfo getAllUserInfo(String id) {
        return userInfoMapper.getAllUserInfo(id);
    }

    @Override
    public List<AllUserInfo> getAllUser() {
        return userInfoMapper.getAllUser();
    }
}
